package com.wb.business.service.sa;

import com.ruoyi.project.relation.domain.ao.SyncActionRequest;
import com.ruoyi.project.relation.domain.ao.SyncActonResponse;
import com.wb.business.service.BusinessEntityService;
import com.wb.business.utils.SyncActionUtils;
import org.springframework.data.repository.NoRepositoryBean;
import org.springframework.transaction.annotation.Transactional;

@NoRepositoryBean
public class BaseService implements BusinessEntityService {


    @Override
    public Object getBusinessEntityServiceImpl() {
        return this;
    }

    @Override
    public String getTableName() {
        return null;
    }


    @Transactional
    @Override
    public SyncActonResponse syncAction(SyncActionRequest syncActionRequest) {
        SyncActonResponse syncActonResponse=new SyncActonResponse();
        Object o = SyncActionUtils.invokeBeanName(this, syncActionRequest);
        syncActonResponse.setData(o);
        return syncActonResponse;
    }
}
